﻿using System;
using Pay.TO;

namespace Pay.Data {
	/// <summary>
	/// 消息推送:mc_MessagePush
	/// </summary>
	public partial class MessagePush {
		public MessagePush() {
		}

		/// <summary>
		/// 消息ID
		/// </summary>
		public long Id { get; set; }
		/// <summary>
		/// 商户id
		/// </summary>
		public long MerchantId { get; set; }
		/// <summary>
		/// 消息标题
		/// </summary>
		public string Title { get; set; }
		/// <summary>
		/// 内容
		/// </summary>
		public string Content { get; set; }
		/// <summary>
		/// 消息短内容
		/// </summary>
		public string ShortContent { get; set; }
		/// <summary>
		/// 增加时间
		/// </summary>
		public long CreateTime { get; set; }
		/// <summary>
		/// 类型
		/// </summary>
		public MsgType Type { get; set; }
		/// <summary>
		/// 类型对象id
		/// </summary>
		public long? ObjectId { get; set; }
		/// <summary>
		/// 阅读时间
		/// </summary>
		public long? ReadTime { get; set; }
		/// <summary>
		/// 是否已读
		/// </summary>
		public bool IsRead { get; set; }
		/// <summary>
		/// 图片
		/// </summary>
		public string ImagePath { get; set; }
		/// <summary>
		/// 屏蔽的消息，用于IM
		/// </summary>
		public bool Filter { get; set; }
		/// <summary>
		/// IM扩展（根据扩展中的type字段来决定UI显示）：
		/// {type:1,product_id:1,price:23.2},type=1表示扩展车源,product_id车源id,price价格;
		/// {type:2,em_at_list:["1","2"]},type=2表示at某些人,em_at_list是用户id数组
		/// </summary>
		public string Ext { get; set; }
        /// <summary>
        /// URL
        /// </summary>
        public string Url { get; set; }

		/// <summary>
		/// 商户
		/// </summary>
		public virtual Merchant Merchant { get; set; }
	}
}
